/*
package com.coolweather.android;

import java.util.List;

import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.longtop.activity.DetailedTopicRecommendationActivity;
import com.longtop.activity.MainNavigatorActivity;
import com.longtop.activity.MoreTopicRecommendationActivity;
import com.longtop.changzhoupark.R;
import com.longtop.entity.GenericBean;
import com.longtop.util.ImageLoadManager;

public class DetailedTopicRecommendationAdapter extends BaseAdapter implements
		OnClickListener {

	private Context context; // ����������
	private List<GenericBean> mDiscoveryPlantBeans; // ��Ϣ����
	private LayoutInflater listContainer; // ��ͼ����
	private ListItemView listItemView = null;
	GenericBean DiscoveryPlantBean;

	class ListItemView {
		private ImageView mImage;
		private TextView mText;
		private TextView mTextContent;
		private TextView mMoreInfo;

	}

	public DetailedTopicRecommendationAdapter(Context context,
			List<GenericBean> flowerCalendarBeans) {
		this.context = context;
		listContainer = LayoutInflater.from(context); // ������ͼ����������������
		System.out.println("asdf" + flowerCalendarBeans);
		this.mDiscoveryPlantBeans = flowerCalendarBeans;
	}

	@Override
	public int getCount() {
		// ���ﷵ�صľ���ListView�ĸ���
		return mDiscoveryPlantBeans.size();
	}

	@Override
	public Object getItem(int arg0) {
		return null;
	}

	@Override
	public long getItemId(int arg0) {
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		DiscoveryPlantBean = mDiscoveryPlantBeans.get(position);
		// �Զ�����ͼ
		if (convertView == null) {
			listItemView = new ListItemView();
			convertView = listContainer.inflate(
					R.layout.activity_event_calender_item, null);
			listItemView.mImage = (ImageView) convertView
					.findViewById(R.id.flowerMonthImage);
			
			listItemView.mText = (TextView) convertView
					.findViewById(R.id.flowerMonthText);
			listItemView.mMoreInfo = (TextView) convertView
					.findViewById(R.id.moreInfo);
			
			listItemView.mTextContent = (TextView) convertView
					.findViewById(R.id.flowerMonthContent);
			convertView.setTag(listItemView);
		} else {
			listItemView = (ListItemView) convertView.getTag();
		}
		
		// ��������
		ImageLoadManager.getLoaderInstace().disPlayRoundImg(
				"http://web.zingke.com:8083/BackManager/"
						+ DiscoveryPlantBean.getImages(), listItemView.mImage,
				R.drawable.loading);
		listItemView.mImage.setTag(position);
		listItemView.mImage.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Log.v(MainNavigatorActivity.ACTIVITY_TAG, "getTag:"+v.getTag().toString());
				int index = Integer.parseInt(v.getTag().toString());
				String plant = mDiscoveryPlantBeans.get(index).getId().toString();
				String subtitle = mDiscoveryPlantBeans.get(index).getSubtitle().toString();
				listItemView.mMoreInfo.getTag();
				Intent intent=new Intent(context,MoreTopicRecommendationActivity.class);
				intent.putExtra("tag", plant);
				intent.putExtra("subtitle", subtitle);
				context.startActivity(intent);
			}

		});
		listItemView.mMoreInfo.setVisibility(View.GONE);
		listItemView.mMoreInfo.setTag(position);
		listItemView.mMoreInfo.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				int index = Integer.parseInt(v.getTag().toString());
				String plant = mDiscoveryPlantBeans.get(index).getId().toString();
				listItemView.mMoreInfo.getTag();
				Intent intent1=new Intent(context,DetailedTopicRecommendationActivity.class);
				intent1.putExtra("tag", plant);
				context.startActivity(intent1);
			}

		});
		listItemView.mText.setText(DiscoveryPlantBean.getName());
		listItemView.mTextContent.setText(DiscoveryPlantBean.getSubtitle());
		return convertView;
	}

	@Override
	public void onClick(View v) {
//		switch (v.getId()) {
//		case R.id.flowerMonthImage:
//			
//			break;
//		case R.id.moreInfo:
//			
//			break;
//		default:
//			break;
//		}
	}

}
*/
